<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>分类浏览</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="../../../css/wx/mui.min.css">
    <link rel="stylesheet" href="../../../css/wx/app.css">
    <link rel="stylesheet" href="../../../css/wx/style.css"/>

    <script type="text/javascript">
        var pageConfig = {
            jss: ["app/hn-bfjltb/goods-classes"],
            cb: function (o) {

            }
        };
    </script>
    <script data-main="../../../js/wx/public/config.js" src="../../../js/require.js"></script>
    <style>
        .mui-content {
            padding: 0;
        }

        .mui-row.mui-fullscreen > [class*="mui-col-"] {
            height: 100%;
        }

        .mui-col-xs-3,
        .mui-col-xs-9 {
            overflow-y: auto;
            height: 100%;
        }

        .mui-segmented-control .mui-control-item {
            line-height: 50px;
            width: 100%;
        }

        .mui-segmented-control.mui-segmented-control-inverted .mui-control-item.mui-active {
            background-color: #fff;
        }

        .mui-table-view .mui-media-object {
            max-width: 68px;
            height: 68px;
        }

        .mui-table-view-cell {
            padding: 11px 10px;
        }

        .mui-control-content {
            position: absolute;
            background-color: #fff;
        }
        .mui-table-view:before,.mui-table-view:after {
            height: 0;
        }
    </style>
</head>

<body>

<!--搜索-->
<div class="search3">
    <form action="javascript:app.returnFalse();">
        <div id="searchDiv1" class="search">
            <select @change="typeChange" v-model="GWAH001">
                <option v-for="o in types" :value="o.GWAH001">{{o.GWAHL003}}</option>
            </select>
            <input v-model="str" @search="serchData" type="search" class="mui-input-clear hasRigico" placeholder="搜索">
            <span class="iconfont icon icon-007 leftIco"></span>
        </div></form>
</div>
<!--列表-->
<div class="mui-content mui-row mui-fullscreen wf-imgBox" style="top: 58px;">
    <div class="mui-col-xs-3">
        <div id="segmentedControls"
             class="mui-segmented-control mui-segmented-control-inverted mui-segmented-control-vertical">
            <template v-for="(val,key) in catalogs">
                <a @tap="showCatalogGoods(key,val.GWAO001, $event)"
                   :class="['mui-control-item', {'mui-active': key==0}]"
                   :href="'#content'+val.GWAH001+key"
                   :_index="val.GWAH001+key">{{val.GWAOL003}}</a>
            </template>
        </div>
    </div>
    <div id="tab-content" class="mui-col-xs-9" style="background-color: #fff">

    </div>
</div>

<script id="classesitem-template" type="text/x-template">
    <ul class="mui-table-view mui-table-view-chevron">
        <li v-for="(val,index) in model" @tap.stop="showDetail(val)" class="mui-table-view-cell">
            <a href="javascript:;" class="mui-navigate">
                <div class="imgBox">
                    <img :src="val.GWAM015 | goodsImgsUtils"/>
                </div>
                <div class="mui-media-body wf-price-color">
                    <h4>{{val.GWAML003}}</h4>
                    <p class="mui-ellipsis wf-sfont-color">￥{{val.GWAP100 | priceFMT}}<span style="color: #000;">/{{val.GWABL003}}</span></p>
                </div>
            </a>
        </li>
    </ul>
</script>
</body>

</html>